#!/usr/bin/env python3

import rospy
from DrRobotController_six_axes_can.msg import do_pose
# import DrRobotController_six_axes as dr

def callback(data):
    import DrRobotController_six_axes as dr
    dr.do_pose(id_num=data.id_num, speed=data.speed, acceleration=data.acceleration, o_r=data.o_r, n=data.n)
    rospy.loginfo("do_pose_node")


def listener():
    rospy.init_node("do_pose", anonymous=True)
    rospy.Subscriber("do_pose", do_pose, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

